package com.guigu.tms.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.builders.ApiInfoBuilder;
import springfox.documentation.service.Contact;
import springfox.documentation.spi.DocumentationType;
import springfox.documentation.spring.web.plugins.Docket;
import springfox.documentation.swagger2.annotations.EnableSwagger2WebMvc;

/**
 * @ClassName:Knife4jConfig
 * @Description://TODO
 * @Author:taoLong
 * @Date:2021/10/26:9:36 星期二
 * @email:2391611102@qq.com or 2391611102qq@gmail.com
 */
@Configuration
@EnableSwagger2WebMvc
public class Knife4jConfig {

    @Bean
    public Docket docket() {
        Docket docket = new Docket(DocumentationType.SWAGGER_2).apiInfo(new ApiInfoBuilder()
                .description("湖南硅谷物流系统")
                .termsOfServiceUrl("https://www.baidu.com")
                .contact(new Contact("龙涛", "https://www.baidu.com", "2391611102@qq.com"))
                .version("1.0")
                .build());
        return docket;
    }

}
